Optimal. Leaf size=33 \[ \frac{x}{2 a}+\frac{i}{2 d (a+i a \tan (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0120401, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {3479, 8} \[ \frac{x}{2 a}+\frac{i}{2 d (a+i a \tan (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3479
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{a+i a \tan (c+d x)} \, dx &=\frac{i}{2 d (a+i a \tan (c+d x))}+\frac{\int 1 \, dx}{2 a}\\ &=\frac{x}{2 a}+\frac{i}{2 d (a+i a \tan (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.102145, size = 45, normalized size = 1.36 \[ \frac{(2 d x-i) \tan (c+d x)-2 i d x+1}{4 a d (\tan (c+d x)-i)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.026, size = 59, normalized size = 1.8 \begin{align*}{\frac{-{\frac{i}{4}}\ln \left ( \tan \left ( dx+c \right ) -i \right ) }{ad}}+{\frac{1}{2\,ad \left ( \tan \left ( dx+c \right ) -i \right ) }}+{\frac{{\frac{i}{4}}\ln \left ( \tan \left ( dx+c \right ) +i \right ) }{ad}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.91847, size = 86, normalized size = 2.61 \begin{align*} \frac{{\left (2 \, d x e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{4 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.215058, size = 61, normalized size = 1.85 \begin{align*} \begin{cases} \frac{i e^{- 2 i c} e^{- 2 i d x}}{4 a d} & \text{for}\: 4 a d e^{2 i c} \neq 0 \\x \left (\frac{\left (e^{2 i c} + 1\right ) e^{- 2 i c}}{2 a} - \frac{1}{2 a}\right ) & \text{otherwise} \end{cases} + \frac{x}{2 a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.13752, size = 81, normalized size = 2.45 \begin{align*} -\frac{\frac{i \, \log \left (\tan \left (d x + c\right ) - i\right )}{a} - \frac{i \, \log \left (-i \, \tan \left (d x + c\right ) + 1\right )}{a} + \frac{-i \, \tan \left (d x + c\right ) - 3}{a{\left (\tan \left (d x + c\right ) - i\right )}}}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]